coding decoding reasoning trick